# Maintainer: Renato Silva <br.renatosilva@gmail.com>

pkgname='sharutils'
pkgdesc='Makes so-called shell archives out of many files'
url='http://www.gnu.org/software/sharutils'
license=(GPL3+)

arch=(i686 x86_64)
pkgver=4.15
pkgrel=1

install=install
depends=(perl gettext texinfo)
makedepends=(gcc gettext-devel)
source=("ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz")
sha1sums=('900e85249b53e34cc55c061d809d31f14c83b210')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
    ./configure --build=${CHOST} \
    --prefix=/usr \
    --mandir=/usr/share/man \
    --infodir=/usr/share/info \

  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
